home *** CD-ROM | disk | other *** search
/ SGI Hot Mix 8 / Hot Mix 8.iso / .all / demos / Soft_Win / InstallIt (.txt) < prev    next >
Text File  |  1994-06-22  |  1KB  |  43 lines

  1. #!/bin/sh
  2.  
  3. #    installit
  4. #
  5. #    Derived from:    Template supplied by SGI for hot mix installation
  6. #            and the SoftPC HotMix scripts.
  7. #
  8. #    Author:        Anthony Shaughnessy
  9. #
  10. #    Created on:    7th April 1994
  11. #
  12. #    Sccs ID:    @(#)installit.sh    1.4 4/19/94
  13. #
  14. #    Coding Stds.:    2.0
  15. #
  16. #    Purpose:    To act as a wrapper for the installation process from
  17. #            the hot mix CD. This script is the top level. It calls
  18. #            xwsh to open a window to run the InstallIt2 script
  19. #            as root. This script is supposed to be called when the
  20. #            user presses the install button on the hot mix CD.
  21. #
  22.  
  23. # Change the value of SOFTWINDIR to whatever is relevant for SoftWindows on the
  24. # hot mix CD. The scripts
  25. # must be held in the same directory as the SoftWindows package files.
  26. # We have not been told by SGI what this directory should be, and so we must
  27. # leave it to them to change this value.
  28. SOFTWINDIR=${SOFTWINDIR:=$HOTMIXDIR/demos/Soft_Win}    export SOFTWINDIR
  29. SWINHOME=/usr/lib/SoftWindows            export SWINHOME
  30.  
  31. # Get the real user id before we su to root, because we won't be able to
  32. # afterwards.
  33. USERID=`id | cut -d'(' -f2 | cut -d')' -f1`    export USERID
  34. GROUPID=`id | cut -d'(' -f3 | cut -d')' -f1`    export GROUPID
  35.  
  36. xwsh -bg royalblue -fg white \
  37.         -geom 80x20+100+100 -cursorfg violetred1 -cursorbg violetred1 \
  38.         -title "Install SoftWindows" \
  39.         -e /bin/sh -c \
  40.         "echo You must be root to install SoftWindows...; \
  41.         cd $SOFTWINDIR ; \
  42.         su root -c './InstallIt2'"
  43.